// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '计划配置',
        name: 'plan_allocation',
        url: "/plan_allocation/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"name":"","type":"","equipment_list":[],"project_form":"","starttime":"","endtime":"","frequency":"","frequency_value":"","time":"","period_of_validity":"","operational_person":"","available_or_not":""};
    const editFormOptions = [[{"title":"名称","field":"name","colSize":12,"type":"text"}],
                              [{"dataKey":"维护类型","data":[],"title":"类型","field":"type","colSize":12,"type":"radio"}],
                              [{"dataKey":"设备表","data":[],"title":"设备列表","field":"equipment_list","colSize":12,"type":"selectList"}],
                              [{"dataKey":"项目表单","data":[],"title":"项目表单","field":"project_form","colSize":12,"type":"select"}],
                              [{"title":"开始日期","field":"starttime","colSize":6,"type":"date"},
                               {"title":"结束日期","field":"endtime","colSize":6,"type":"date"}],
                              [{"dataKey":"频率","data":[],"title":"频率","field":"frequency","colSize":12,"type":"select"}],
                              [{"title":"频率值","field":"frequency_value","colSize":12,"type":"text"}],
                              [{"title":"时间","field":"time","colSize":8,"type":"time"},
                               {"title":"有效期(分钟)","field":"period_of_validity","colSize":3,"type":"number"}],
                              [{"dataKey":"用户列表","data":[],"title":"可操作人","field":"operational_person","colSize":12,"type":"select"}],
                              [{"dataKey":"enable","data":[],"title":"是否启用","field":"available_or_not","type":"radio"}]];
    const searchFormFields = {"name":"","type":"","project_form":""};
    const searchFormOptions = [[{"title":"名称","field":"name","type":"like"},{"dataKey":"维护类型","data":[],"title":"类型","field":"type","type":"select"},{"dataKey":"项目表单","data":[],"title":"项目表单","field":"project_form","type":"like"}]];
    const columns = [{field:'id',title:'主建id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'name',title:'名称',type:'string',width:120,align:'left'},
                       {field:'type',title:'类型',type:'string',bind:{ key:'维护类型',data:[]},width:120,align:'left'},
                       {field:'equipment_list',title:'设备列表',type:'string',bind:{ key:'设备表',data:[]},width:220,align:'left'},
                       {field:'project_form',title:'项目表单',type:'string',bind:{ key:'项目表单',data:[]},width:220,align:'left'},
                       {field:'starttime',title:'开始日期',type:'datetime',width:150,align:'left'},
                       {field:'endtime',title:'结束日期',type:'datetime',width:150,align:'left'},
                       {field:'frequency',title:'频率',type:'string',bind:{ key:'频率',data:[]},width:110,align:'left'},
                       {field:'frequency_value',title:'频率值',type:'string',width:120,align:'left'},
                       {field:'time',title:'时间',type:'string',width:110,align:'left'},
                       {field:'period_of_validity',title:'有效期(分钟)',type:'int',width:110,align:'left'},
                       {field:'operational_person',title:'可操作人',type:'string',bind:{ key:'用户列表',data:[]},width:220,align:'left'},
                       {field:'available_or_not',title:'是否启用',type:'int',bind:{ key:'enable',data:[]},width:110,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updateusername',title:'修改人',type:'string',width:220,align:'left'},
                       {field:'updatetime',title:'修改时间',type:'datetime',width:150,align:'left'},
                       {field:'one',title:'扩展字段1',type:'string',width:220,align:'left'},
                       {field:'two',title:'扩展字段2',type:'string',width:220,align:'left'},
                       {field:'three',title:'扩展字段3',type:'string',width:220,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}